<div class="layui-tab">
    <ul class="layui-tab-title">
        @foreach($input_type as $key => $value)
            <li  class="select_tab_this @if($request->input_type == $key) layui-this @endif" data-value="{{$key}}">{{$value}}</li>

        @endforeach
    </ul>

</div>

<script>
    $('.select_tab_this').click(function(){

    })
</script>
